home *** CD-ROM | disk | FTP | other *** search
- Path: erinews.ericsson.se!usenet
- From: etlwihe@etlxdmx.ericsson.se ( wei he (martletts) )
- Newsgroups: comp.lang.c
- Subject: A question about STRING.
- Date: 22 Jan 1996 15:31:29 GMT
- Organization: Ericsson Telecommunications Ltd
- Message-ID: <4e0akh$853@erinews.ericsson.se>
- Reply-To: etlwihe@etlxdmx.ericsson.se
- NNTP-Posting-Host: etlma11m.ericsson.se
-
- Hi there,
-
- I have a problem with 'C' and need your help.
-
- In my program, there is a variable MUTLI_RECORDS defined as char, which has a
- typical string as following:
-
- 1,0,a,map010017000802532236,1,pp,0.2,1,0,map010017000802532236,acc,1,0. ...
-
- In fact, this string contains many records. Each record contains seven columns.
- The columns in each record are seperated by the comma ','. Each record is
- terminated by a full stop '.'.
-
- What I want to do is to have a loop. In each loop, one record is extracted
- from the MULTI_RECORDS and the different columns in this record are assigned to
- different variables.
-
- As the program is to run on a real time system, I have to keep the loops equal
- to the number of records hold in the MULTI_RECORDS, no inner loop is allowed.
-
- Any suggestion on how to implement this or any other better mothed of achiving
- the same goal is highly appreciated.
-
-
- Cheers.
-
- Wei
-
-
-
-
-
-
-
-